<template>
  <div class="case-page">
    <!-- 医院名称 -->
    <h1 class="hospital-name" style="margin-bottom: 3px">{{ info.title }}</h1>
    <h1 class="hospital-name">收费单</h1>
    <div class="dotted"></div>
    <div class="content_item" style="margin-top: 20px;">
      <div>姓名：张三    男    22岁10月</div>
      <div>电话：17712341234</div>
      <div>诊号：ZH2024010101001</div>
      <div>医生：张三</div>
    </div>
    <div class="dashed"></div>
    <div class="content_item" >
      <div style="display: flex;">
        <div>头部CT*1</div>
        <div style="margin-left: auto;">40.00</div>
      </div>
      <div style="display: flex;">
        <div>血糖*10</div>
        <div style="margin-left: auto;">900.25</div>
      </div>
    </div>
   
    <div class="dashed"></div>
    <div class="content_item" >
      <div style="display: flex;">
        <div>中西成药费</div>
        <div style="margin-left: auto;">40.00</div>
      </div>
    </div>
    <div class="dashed"></div>
    <div class="content_item" >
      <div style="display: flex;">
        <div>中药费</div>
        <div style="margin-left: auto;">40.00</div>
      </div>
    </div>
     <div class="dashed"></div>
    <div class="content_item" >
      <div style="display: flex;">
        <div>外治费</div>
        <div style="margin-left: auto;">40.00</div>
      </div>
    </div>
    <div class="dashed"></div>
    <div class="content_item" >
      <div style="display: flex;">
        <div>合计：</div>
        <div style="margin-left: auto;">450.00</div>
      </div>
      <div style="display: flex;">
        <div>实付：</div>
        <div style="margin-left: auto;">900.25(支付宝)</div>
      </div>
    </div>
    <div class="dashed"></div>
    <div class="content_item">
      <div>收费员：张三</div>
      <div>收费时间：2025-08-14 09:00:00</div>
      <div>打印人员：张三</div>
      <div>打印时间：2025-08-14 09:00:00</div>
      <div>地址：{{info.address}}</div>
      <div>电话：{{info.phone}}</div>
    </div>
    <div class="dotted" style="margin-top: 20px;"></div>
    <div class="footer">药品离柜  概不退换</div>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive } from 'vue';

export default defineComponent({
  name: 'CasePage',
  props:['info'],
  setup() {
   
  },
});
</script>

<style scoped lang="scss">
.case-page {
  font-family: Arial, sans-serif;
  padding: 34px 30px;background-color: #fff;
  height: 100%;
  width: 335px;
  margin: auto;
  font-size: 12px;
}
.hospital-name {
  text-align: center;
  font-size: 16px;
  margin-bottom: 15px;

}

.footer{
  font-family: Songti SC, Songti SC;
  font-weight: 400;
  font-size: 12px;
  color: #000000;
  text-align: center;
  
  font-style: normal;
  text-transform: none; 
  margin: 20px 0;
}
.content_item  >div{
    line-height: 1.5;
  }
.dashed{
  margin: 10px 0;
  border: 1px dashed #666;
}
.dotted{
  width: 100%;
  height: 5px;
  background: 
   linear-gradient(90deg, #000 63%, transparent 0) repeat-x, linear-gradient(90deg, #000 63%, transparent 0) repeat-x;
  background-size: 9px 1px; /* 控制虚线长度和间隔 */
  background-position: 0 0, 0 100%, 0 0, 100% 0;
}

</style>
